#include <stdio.h>
#include <stdlib.h>
using namespace std;

struct ListNode {
    int val;
    ListNode *next;
    ListNode(int x) : val(x), next(NULL) {}
};

class Solution {
public:
    void deleteNode(ListNode* node) {
      ListNode *s, *a;
      s = (ListNode*)malloc(sizeof(ListNode));
      s->val = node->next->val;
      s->next = node->next->next;
      node->val = s->val;
      node->next = s->next;
    }
};

int main(int argc, char const *argv[])
{
  return 0;
}
